ssul.breadcrumb.mtop30
	li
		a(href='/portal/index') 首页
	li.sep >
	li
		a(href='#/asset') 理财产品
	li.sep >
	li 产品列表
	
div(ng-show='products && products.length > 0')
	section
		.mleft5.mright10(class='mon-title-icon{{risk_level}}')
		h2.afc.ib.mright10(ng-class='{rc: 5==risk_level}') {{fundRiskLevelLabels[risk_level]}}风险
		h3.sfc.ib.mrem 理财产品
		.ib.width790.line &nbsp;

	section
		.ib.m_col_1_4.mbottom20.gf-slider(ng-repeat='pro in products', ng-class='{first: 0 == $index % 4}')
			.slider
				figure.pane
					img(ng-src='/_cms_/sites/default/files/ads/asset_index_{{pro.code}}.jpg', alt='{{pro.title}}').mon_p
					figcaption.mon_cap
						.nfc.font14.mleft8 {{pro.title | filterword : '(优先级)'}}
				.pane.pane2.blurborder
					.mon_cap2
						a(ng-href='#/asset/detail?pid={{pro.id}}').nfc.link.font14.pull-left.mleft8 {{pro.title | filterword : '(优先级)'}}
					.pad8
						a(ng-href='#/asset/detail?pid={{pro.id}}')
							{{pro.description.substring(0, 50)}}
							span(ng-show='pro.description.length > 49')...
					.bot
						.ib.vam.mright10 最新净值：1.0467元
						.ib(ng-switch='!pro.extra2.buy_at_other_site')
							button.buy.wc(ng-switch-when='true', ng-click="dialog.MoneyTip=true;buy(pro)") 立即购买
							button.buy.wc(ng-switch-when='false')
								a.wc(ng-href='{{pro.extra2.buy_at_other_site}}') 立即购买

.dialog.border.g(gf-global-dialog='MoneyTip').hidden
	.close(ng-click='dialog.MoneyTip=false', title='关闭') &nbsp;
	.title.font16 {{product.title}}
	.pad15
		header
			div
				b 产品名称：
				| {{product.name}}

			.mtop10
				b 产品代码：
				| {{product.code}}

			.mtop10
				b 购买金额：
				input(type='number', ng-model='number', min=0, maxlength=20, required).w5em
				| 元
		
		footer.mtop10.border.pad10.boxbg
			div(ng-switch='!number')
				span.mrem2 已选择: {{product.title}}
				| 总价
				span(ng-switch-when='false').mlem.rc  ￥{{number}}
				span(ng-switch-when='true').mlem.rc  ￥0
			
			.mbottom10
				a(href='javascript:void(0);', ng-show='number>=1000', ng-click='purchase(product.id, 0, number, 1)').btn.primary.mtop10.mlem 立即购买
				a(href='javascript:void(0);').btn.primary.mtop10.mlem.disabled.hidden 暂停申购